package org.wukongcrm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wukongcrm.domain.entity.Leads;
import org.wukongcrm.domain.model.LeadsVo;

import java.util.List;

@Mapper
public interface LeadsMapper extends BaseMapper<Leads> {
    List<LeadsVo> selectLeads (Page<LeadsVo> page, @Param("conditions") String conditions, @Param("leadsId") Integer leadsId);

    int updateOwnerUser (@Param("ownerUserId") Integer ownerUserId, @Param("leadsNo") Integer leadsNo);
}